package com.situ.ssm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.situ.ssm.dao.UserMapper;
import com.situ.ssm.entity.User;
import com.situ.ssm.service.IUserService;
import com.sun.org.apache.regexp.internal.recompile;

@Service
public class UserServiceImpl implements IUserService{
	@Autowired
	private UserMapper userMapper;

	@Override
	public List<User> list() {
		return userMapper.list();
	}

	@Override
	public int deleteById(Integer id) {
		return userMapper.deleteById(id);
	}

	@Override
	public int add(User user) {
		return userMapper.add(user);
	}

}
